package com.itheima;

import com.itheima.domain.Order;
import com.itheima.service.OrderService;
import javafx.application.Application;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * @author itheima
 * @since 2021-10-25
 */
public class App {
    public static void main(String[] args) {

        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");

        OrderService orderService = (OrderService) ctx.getBean("orderService");

        // List<Order> list = orderService.getList();

    }
}
